package com.cyf.db.bean.ad;

import java.util.Date;

/**
 * 信息发布的（广告的）支付订单
 * Created by hfy on 2017/5/16.
 */
public class AdPayOrder {

    /** 订单状态 待支付**/
    public static final int STATUS_WAIT_PAY = 1;
    /** 订单状态 待审核 **/
    public static final int STATUS_WAIT_REVIEW = 2;
    /** 订单状态 待播放 **/
    public static final int STATUS_WAIT_PLAY = 3;
    /** 订单状态 播放中 **/
    public static final int STATUS_PLAYING = 4;
    /** 订单状态 完成 **/
    public static final int STATUS_FINISH = 5;
    /** 订单状态 审核失败 **/
    public static final int STATUS_REVIEW_FAIL = 6;
    /** 订单状态 关闭 **/
    public static final int STATUS_CLOSE = 7;


    public static final int TRADETYPE_APP = 1;
    public static final int TRADETYPE_PC = 2;

    public static final int PAYWAY_ALIPAY = 1;
    public static final int PAYWAY_WECHAT = 0;
    public static final int PAYWAY_BALANCE = 2;


    /*public static final int status_notpay = 0;
    public static final int status_pay = 1;
    public static final int status_review = 2;
    public static final int status_publish = 3;
    public static final int status_finish = 4;
    public static final int status_timeout = 5;
    public static final int status_cancel = 6;*/

    private Integer id;
    private Integer adId;// 广告id
    private String orderNo; // 商户订单号　
    private Date txnTime; // 订单发送时间　
    private Integer txnAmt;// 交易金额：单位分
    private String queryId;// 交易查询流水号：消费交易的流水号，供后续查询用
    private Integer settleAmt;// 清算金额
    private Date settleDate; // 清算日期
    private Integer status;	// 订单支付状态 1-成功 0-失败 2-未知（提交订单，但还未查询订单支付状态）
    private String rspCode; // 交易应答码
    private String rspMsg;	// 交易应答信息
    private String txnType; // 交易类型：01-消费 04-退货
    private String origQryId; // 退货交易时的 请求的原交易流水号
    private int tradeType;	// 交易类型： 0-微信 1-APP 2-PC
    private int payWay;		// 支付方式：0-微信 1-支付宝 2-银行卡 3-未知

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAdId() {
        return adId;
    }

    public void setAdId(Integer adId) {
        this.adId = adId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderId) {
        this.orderNo = orderId;
    }

    public Date getTxnTime() {
        return txnTime;
    }

    public void setTxnTime(Date txnTime) {
        this.txnTime = txnTime;
    }

    public Integer getTxnAmt() {
        return txnAmt;
    }

    public void setTxnAmt(Integer txnAmt) {
        this.txnAmt = txnAmt;
    }

    public String getQueryId() {
        return queryId;
    }

    public void setQueryId(String queryId) {
        this.queryId = queryId;
    }

    public Integer getSettleAmt() {
        return settleAmt;
    }

    public void setSettleAmt(Integer settleAmt) {
        this.settleAmt = settleAmt;
    }

    public Date getSettleDate() {
        return settleDate;
    }

    public void setSettleDate(Date settleDate) {
        this.settleDate = settleDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRspCode() {
        return rspCode;
    }

    public void setRspCode(String rspCode) {
        this.rspCode = rspCode;
    }

    public String getRspMsg() {
        return rspMsg;
    }

    public void setRspMsg(String rspMsg) {
        this.rspMsg = rspMsg;
    }

    public String getTxnType() {
        return txnType;
    }

    public void setTxnType(String txnType) {
        this.txnType = txnType;
    }

    public String getOrigQryId() {
        return origQryId;
    }

    public void setOrigQryId(String origQryId) {
        this.origQryId = origQryId;
    }

    public int getTradeType() {
        return tradeType;
    }

    public void setTradeType(int tradeType) {
        this.tradeType = tradeType;
    }

    public int getPayWay() {
        return payWay;
    }

    public void setPayWay(int payWay) {
        this.payWay = payWay;
    }
}
